﻿
using System.Collections.Generic;
namespace Mal.Balades.Admin.ViewModels.VisitViewModels.Edit
{
    public class InformationsTabViewModel : TabViewModelBase
    {
        #region Fields
        private List<List<InformationViewModel>> informationTypes;


        #endregion

        #region Construction / Destruction
        public InformationsTabViewModel(VisitEditViewModel parent)
            : base(parent)
        {
            this.AddCommandEnabled = true;

            
        }
        #endregion

        #region enum, struct, class

        #endregion

        #region Properties
        public override string TabHeader
        {
            get { return "Informations"; }
        }

        public List<List<InformationViewModel>> InformationTypes
        {
            get { return informationTypes; }
            set
            {
                if (informationTypes != value)
                {
                    informationTypes = value;
                    RaisePropertyChanged("InformationTypes");
                }
            }
        }
        #endregion

        #region Methods
        public override void Add()
        {
            this.ParentViewModel.SourceVisit.Informations.Add(new InformationViewModel());
        }
        #endregion

        #region Events

        #endregion


    }
}
